<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <button class="get">get</button>
    <button class="set">set</button>
    <div>
        <!-- 页面加载时 默认 显示控制器 静音 自动播放 循环播放 -->
        <video src="../video/ad.mp4" controls muted autoplay loop></video>
    </div>
</body>
<script>

    var video = document.getElementsByTagName("video")[0];
    var get = document.getElementsByClassName("get")[0];
    var set = document.getElementsByClassName("set")[0];

    get.onclick = function () {
        console.log(video.controls);
        console.log(video.muted);
        console.log(video.autoplay);
        console.log(video.loop);
    }

    set.onclick = function () {
        console.log(1111);
        video.controls = false;
        video.muted = false;
        video.autoplay = false;
        video.loop = false;

        video.pause();
    }


</script>

</html>